package com.googlecode.flealancemarket.service.commands.impl;

import com.googlecode.flealancemarket.metamodel.User;
import com.googlecode.flealancemarket.service.commands.GetFullUserById;
import com.googlecode.flealancemarket.service.facades.UserFacade;

public class GetFullUserByIdImpl implements GetFullUserById {

    private UserFacade facade;
    private Long id;

    public UserFacade getFacade() {
        return facade;
    }

    public void setFacade(UserFacade facade) {
        this.facade = facade;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public User execute(){
        return facade.getFullUserById(id);
    }

}
